package cn.zb.zbrhback.auth.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "菜单实体类",description = "菜单的所有字段")
public class Menu {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "前端路径")
    private String url;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "父级id")
    private Long parent_id;

    @ApiModelProperty(value = "父菜单")
    private Menu parent;

    @ApiModelProperty(value = "子菜单")
    private List<Menu> children;
}
